package com.jsftoolkit.utils.xmlpull;

/**
 * Signals element body text should be output.
 * 
 * @author noah
 * 
 */
public class BodyText implements PullEvent {

	public static final short TYPE = 4;

	private final StringBuilder text;

	public BodyText(char[] ch, int start, int len) {
		super();
		this.text = new StringBuilder();
		this.text.append(ch, start, len);
	}

	public BodyText(StringBuffer sb) {
		super();
		this.text = new StringBuilder(sb);
	}

	public StringBuilder getText() {
		return text;
	}

	public short getType() {
		return TYPE;
	}

}
